ADD_EXECUTABLE(TestDateTime TestDateTime.cpp)
ADD_EXECUTABLE(TestActivityHistory TestActivityHistory.cpp)
ADD_EXECUTABLE(TestInterval TestInterval.cpp)
TARGET_LINK_LIBRARIES(TestDateTime TrainingBookLib)
TARGET_LINK_LIBRARIES(TestActivityHistory TrainingBookLib 
                                          ${LIBXMLPP_LIBRARIES}
                                          ${GTKMM_LIBRARIES}
                                          ${CURL_LIBRARIES})
TARGET_LINK_LIBRARIES(TestInterval TrainingBookLib)


#INSTALL(TARGETS TestDateTime
#        DESTINATION bin
#        PERMISSIONS OWNER_READ GROUP_READ WORLD_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE
#       )

ADD_TEST(TestDateTime ${EXECUTABLE_OUTPUT_PATH}/TestDateTime)
ADD_TEST(TestActivityHistoryReading ${EXECUTABLE_OUTPUT_PATH}/TestActivityHistory read ${CMAKE_SOURCE_DIR}/data/test/TestActivityHistory toberenamed)
ADD_TEST(TestInterval ${EXECUTABLE_OUTPUT_PATH}/TestInterval)

